<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-sclae=1.0,user-scalable=0">
	<link rel="stylesheet" type="text/css" href="css/base.css">
	<link rel="stylesheet" type="text/css" href="css/style.css">
	<title>xuluo</title>
	<style type="text/css">
		.input{width:200px;height:24px;line-height:24px;font-size:14px;padding:5px 8px;border:1px solid #ddd;}
		.input:empty::before{content:attr(placeholder);}
		.input:empty{border: 1px solid #f40;}
	</style>
</head>
<body>
	<div class="input" contenteditable placeholder="请输入文字">
		<img src="images/bnr1.png" width="10">
	</div>
</body>
</html>